/*    */ package com.finir.fakturisanje.forms.extended;
/*    */ 
/*    */ import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

import javax.swing.JPanel;
/*    */ 
/*    */ public class ExtendedJPanel extends JPanel
/*    */ {
/*    */   private static final long serialVersionUID = 4342743088041093065L;
/*    */ 
/*    */   protected void paintComponent(Graphics g)
/*    */   {
/* 20 */     Graphics2D g2 = (Graphics2D)g;
/* 21 */     g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 
/* 22 */       RenderingHints.VALUE_ANTIALIAS_ON);
/* 23 */     int w = getWidth();
/* 24 */     int h = getHeight();
/* 25 */     GradientPaint gradient = new GradientPaint(20.0F, 0.0F, Color.cyan.darker(), 
/* 26 */       20.0F, h, Color.white, true);
/* 27 */     g2.setPaint(gradient);
/* 28 */     g2.fillRect(0, 0, w, h);
/*    */   }
/*    */ }

